package persistence

type ArbitragePosition struct {
	Id          int    `orm:"auto"`
	Symbol      string `orm:"size(32)"`
	SpotCount   float64
	FutureCount float64
	SpotPrice   float64
	FuturePrice float64
}

func (ap *ArbitragePosition) TableName() string {
	return "arbitrage_position"
}

type SymbolExchangeInfo struct {
	Id                        int    `orm:"auto"`
	Symbol                    string `orm:"size(32)"`
	SpotLotPrecision          int
	SpotMarketLotPrecision    int
	SpotPricePrecision        int
	FuturesLotPrecision       int
	FuturesMarketLotPrecision int
	FuturesPricePrecision     int
}

func (si *SymbolExchangeInfo) TableName() string {
	return "symbol_exchange_info"
}
